var createOAuthSig = function(oauth_consumer_key, consumerSecret, oauth_token, tokenSecret) {
	var urlLink = 'https://api.twitter.com/1.1/statuses/update.json';

    var postSummary = 1;
    var status = OAuth.percentEncode(postSummary);
    var nonce = OAuth.nonce(32);
    var ts = Math.floor(new Date().getTime() / 1000);
    var timestamp = ts.toString();

    var accessor = {
        "consumerSecret": consumerSecret,
        "tokenSecret": tokenSecret
    };


    var params = {
        "status":postSummary,
        "oauth_version": "1.0",
        "oauth_consumer_key": oauth_consumer_key,
        "oauth_token": oauth_token,
        "oauth_timestamp": timestamp,
        "oauth_nonce": nonce,
        "oauth_signature_method": "HMAC-SHA1"
    };
    var message = {
        "method": "POST",
        "action": urlLink,
        "parameters": params
    };

    OAuth.SignatureMethod.sign(message, accessor);
    var normPar = OAuth.SignatureMethod.normalizeParameters(message.parameters);
    console.log("Normalized Parameters: " + normPar);
    var baseString = OAuth.SignatureMethod.getBaseString(message);
    console.log("BaseString: " + baseString);
    var sig = OAuth.getParameter(message.parameters, "oauth_signature") + "=";
    console.log("Non-Encode Signature: " + sig);
    var encodedSig = OAuth.percentEncode(sig);
    console.log("Encoded Signature: " + encodedSig);

    $.ajax({
        method: 'GET',
        url: urlLink,
        headers: {
            "Authorization": "OAuth", 
			"oauth_consumer_key": consumerKey,
			"oauth_nonce": nonce,
			"oauth_signature": encodedSig, 
			"oauth_signature_method": "HMAC-SHA1", 
			"oauth_timestamp": timestamp,
			"oauth_token=": accessToken, 
			"oauth_version": "1.0"
        },
        body: {
            "status": postSummary,
        },
        success: function(res) {
            return res.text;
        },
        error: function(res) {
            return 'Request failed with response ' + res.status + ' , ' + res;
        }
    });
}